<div class="info">
<h1 class="font_h1">Tạo mới bản tin</h1>
<?php if(isset($error))  : ?>
<h2 class="error_red"><?php echo $error;?></h2>
<?php endif;?>
<form action="<?php echo base_url().'admin/setting/add_nick/'.@$uid?>" method="POST" enctype="multipart/form-data" id="frm_add">
<table class="table1">
    <tr>
                <td width="20%">Nhóm: </td>
                <td width="80%">
               <select name="txt_group" style="width:150px">
               	<?php foreach($list_group as $row) :?>
               	<option value="<?php echo $row->id_sub;?>"><?php echo $row->name;?></option>
                <?php endforeach; ?>
               </select>
                   
                </td>
    </tr>  
     <tr>
                <td width="20%">Phone: </td>
                <td width="80%">
                <?php if(@$nicks->phone !='') { ?>
                <input type="text" name="txt_phone" style="width:200px" value="<?php echo $nicks->phone?>"  />
                <?php } else { ?>
                <input type="text" name="txt_phone" style="width:200px" value=""  />
                <?php } ?>
                   
                </td>
    </tr>   
    <tr>
                <td width="20%"></td>
                <td width="80%">
                	<span style="background: red;width:200px"><?php echo form_error('txt_phone');?></span>
                </td>
    </tr> 
     <tr>
                <td width="20%">Yahoo address: </td>
                <td width="80%">
                 <?php if(@$nicks->yahoo !='') { ?>
                <input type="text" name="txt_yahoo" style="width:200px" value="<?php echo $nicks->yahoo?>"  />
                <?php } else { ?>
                <input type="text" name="txt_yahoo" style="width:200px" value=""  />
                <?php } ?>
               
                   
                </td>
    </tr>  
    <tr>
                <td width="20%"></td>
                <td width="80%">
                	<span style="background: red;width:200px"><?php echo form_error('txt_yahoo');?></span>
                </td>
    </tr> 
    <tr>
                <td width="20%">Skype address: </td>
                <td width="80%">
                <?php if(@$nicks->skype !='') { ?>
                <input type="text" name="txt_skype" style="width:200px" value="<?php echo $nicks->skype?>"  />
                <?php } else { ?>
                <input type="text" name="txt_skype" style="width:200px" value=""  />
                <?php } ?>  
                </td>
    </tr> 
    <tr>
                <td width="20%"></td>
                <td width="80%">
                	<span style="background: red;width:200px"><?php echo form_error('txt_skype');?></span>
                </td>
    </tr>  
    <tr>
                <td width="20%">Sắp xếp: </td>
                <td width="80%">
                <?php if(@$nicks->order_users !='') { ?>
                <input type="text" name="txt_order" style="width:200px" value="<?php echo $nicks->order_users?>"  />
                <?php } else { ?>
                <input type="text" name="txt_order" style="width:200px" value=""  />
                <?php } ?> 
                </td>
    </tr> 
     <tr>
                <td width="20%">Actvie/No active</td>
                <td width="80%">
                <input type="checkbox" name="txt_active" value="1" <?php if(@$nicks->active == '1') echo "checked";?> />
                   
                </td>
    </tr> 
    <tr>
                <td width="20%">Mô tả:</td>
                <td width="80%">
                	<textarea name="txt_description" style="width:400px; height:150px"><?php echo @$nicks->description;?></textarea>                   
                </td>
    </tr> 
    <tr>
                
    </tr>
    
    <tr>
                <td width="20%"></td>
                <td width="80%">
                <a  class="button" onclick="$('#frm_add').submit()" href="javascript:void(0)">Lưu lại</a>
                 <a  class="button" href="<?php echo base_url().'admin/setting/listNick'?>">Quay lại</a>
                 
                </td>
    </tr>
</table>
</form>
</div>